﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>
<div class="left" id="ddsidemenubar">
    <% if ("/Home/TinTuc".Equals(Request.Path) || "/Home/TinTuc/".Equals(Request.Path) || Request.Path.Contains("Home/ChiTietTinTuc"))
       { %>
    <div class="cate_area">
        <div class="title_cate">
            <h4>
                <span id="Span1">Loại Tin Tức</span></h4>
        </div>
        <div class="center_cate">
            <ul class="cate_list">
                <% foreach (var obj in Model.LoaiTinTucModel.GetModel.LstObjModel)
                   { %>
                <li><a href="<%= Url.Action("TinTuc", "Home", new { idloaitintuc = obj.ID }) %>">
                    <%= obj.TenLoaiTinTuc%></a> </li>
                <% } %>
            </ul>
        </div>
        <div class="bt_cate">
        </div>
    </div>
    <% } %>
    <div class="cate_area">
        <div class="title_cate">
            <h4>
                <span id="MenuLeftControl1_rptParent_hplLinkParent_0">Sách</span></h4>
        </div>
        <div class="center_cate">
            <ul class="cate_list">
                <% foreach (var obj in Model.LoaiSachModel.GetModel.LstObjModel)
                   { %>
                <li><a href="<%= Url.Action("Sach", "Home", new { idloaisach = obj.ID }) %>">
                    <%= obj.TenLoaiSach %></a></li>
                <% } %>
            </ul>
        </div>
        <div class="bt_cate">
        </div>
    </div>
    <div class="cate_area">
        <div class="title_cate">
            <h4>
                Đối tác</h4>
        </div>
        <div class="center_cate" style="padding: 5px; width: 198px;">
            <% foreach (var obj in Model.DoiTacModel.GetModel.LstObjModel)
               { %>
            <div style="padding: 10px 0;">
                <center>
                    <a href="#">
                        <img src="../../Content/Images/Items/<%= obj.HinhMinhHoa %>" alt="<%= obj.TenDoiTac %>" width="100"></a></center>
            </div>
            <% } %>
        </div>
        <div class="bt_cate">
        </div>
    </div>
</div>
